home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PCMania 45
/
PCMania CD45_1.iso
/
vb4wm
/
vb4-4.cab
/
butterf.frm
< prev
next >
Wrap
Text File
|
1995-10-16
|
3KB
|
93 lines
VERSION 4.00
Begin VB.Form Form1
BackColor = &H00FFFFFF&
Caption = "Mariposa"
ClientHeight = 4005
ClientLeft = 45
ClientTop = 1260
ClientWidth = 7395
ClipControls = 0 'False
BeginProperty Font
name = "MS Sans Serif"
charset = 1
weight = 700
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
Height = 4410
Left = -15
LinkTopic = "Form1"
ScaleHeight = 267
ScaleMode = 3 'Pixel
ScaleWidth = 493
Top = 915
Width = 7515
WindowState = 2 'Maximized
Begin VB.CommandButton Command1
Caption = "&Salir"
Height = 495
Left = 6000
TabIndex = 0
Top = 3360
Width = 1095
End
Begin VB.Timer Timer1
Interval = 200
Left = 1890
Top = 2940
End
Begin VB.Image Main
Height = 1155
Left = 360
Picture = "BUTTERF.frx":0000
Top = 2640
Width = 1155
End
Begin VB.Image CloseWings
Height = 1155
Left = 1920
Picture = "BUTTERF.frx":0C8A
Top = 240
Visible = 0 'False
Width = 1155
End
Begin VB.Image OpenWings
Height = 1155
Left = 360
Picture = "BUTTERF.frx":1914
Top = 240
Visible = 0 'False
Width = 1155
End
End
Attribute VB_Name = "Form1"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Private Sub Command1_Click()
Unload Me
End
End Sub
Private Sub Form_Load()
command1.Move 10, 10
End Sub
Private Sub Timer1_Timer()
Static PickBmp As Integer
Main.Move Main.Left + 20, Main.Top - 5
' Si desea cambiar el ejemplo, use la lφnea siguiente en lugar de la anterior.
' Main.Move (Main.Left + 20) Mod ScaleWidth, (Main.Top - 5 + ScaleHeight) Mod ScaleHeight
If PickBmp Then
Main.Picture = OpenWings.Picture ' Muestra la imagen de la mariposa con las alas abiertas.
Else
Main.Picture = CloseWings.Picture ' Muestra la imagen de la mariposa con las alas cerradas.
End If
PickBmp = Not PickBmp ' Alterna el valor.
End Sub